package com.zts.modules.sys.entity;

import com.zts.base.entity.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by lily on 2017/6/7.
 */
public class Group extends DataEntity {
    @NotNull(message = "组名称")
    @Length(min = 1, max = 300, message = "组名称长度不能超过300个字符")
    private String groupName;

    @NotNull(message = "组类型 1：实体部门，2：逻辑部门")
    private String type;

    @NotNull(message = "父亲组")
    private Long parentId;
    //组状态 0：不可用，1：可用
    private String status;
    //排序
    private int sortNum;


    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public int getSortNum() {
        return sortNum;
    }

    public void setSortNum(int sortNum) {
        this.sortNum = sortNum;
    }
}
